package com.ytclub.subject.domain.handle;

import com.ytclub.subject.common.enums.SubjectInfoTypeEnum;
import com.ytclub.subject.domain.entity.SubjectInfoBO;
import com.ytclub.subject.domain.entity.SubjectOptionBO;

/**
 * @author: HuangQi
 * @date: Created in 21:52 2023/12/20
 * @description:
 */
public interface SubjectTypeHandler {

    /**
     * 枚举身份的识别
     *
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目的插入
     *
     * @param subjectInfoBO 题目信息BO
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 根据id查询题目答案
     *
     * @param subjectId 题目id
     * @return 题目答案
     */
    SubjectOptionBO query(Long subjectId);

}
